﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SequenceAssembler
{
	class IntermediateResultReporter
	{
		BackGraph bg;

		public IntermediateResultReporter(BackGraph backGraph) {
			bg = backGraph;
		}

		public void Report() {
			int outId = 0;
			foreach (long id in bg.CellList) {
				SequenceCell cell = bg.LoadCell<SequenceCell>(id);
				if (LongEnough(cell)) {
					Console.WriteLine("> SEQUENCE {0} {1}", outId++, cell.Size);
					Console.WriteLine(BaseOperation.bitDequeToString(cell.Data));
				}
			}
		}

		private bool LongEnough(SequenceCell cell) {
			return cell.Size > 100;
		}
	}
}
